package com.ssi.service.user.impl;

import java.util.List;
import java.util.Map;

import com.ssi.dao.user.UserDao;
import com.ssi.domain.user.User;
import com.ssi.service.user.UserService;

/**
 * 类说明：用户Service实现
 * 
 * @author 
 * @version
 */
public class UserServiceImpl implements UserService {

	private UserDao userDao;

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void addUser(User user) {
		userDao.addUser(user);
	}

	public void updateUser(User user) {
		userDao.updateUser(user);
	}

	public void deleteUser(int id) {
		userDao.deleteUser(id);
	}

	public User queryUserById(int id) {
		return userDao.queryUserById(id);
	}

	public List<User> queryAllUser() {
		return userDao.queryAllUser();
	}

	public User login(Map<String,Object> map) {
		return userDao.login(map);
	}
}
